package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_configuration;

import cn.com.api.mapper.ApiT_configurationMapper;

import cn.com.api.service.ApiT_configurationService;

/**
 * 
 **/
@Service
public class T_configurationServiceImplBase {
	@Autowired
	private ApiT_configurationMapper apiT_configurationMapper;

	// 根据id获取
	public ApiT_configuration findT_configurationById(Integer id) {
		ApiT_configuration t_configuration = apiT_configurationMapper
				.findT_configurationById(id);
		return t_configuration;
	}

	// 查看数据集
	public List<ApiT_configuration> findT_configurations() {
		List<ApiT_configuration> t_configurations = apiT_configurationMapper
				.findT_configurations();
		return t_configurations;
	}

	// 添加
	public int insertT_configuration(ApiT_configuration t_configuration) {
		int ret_I = apiT_configurationMapper
				.insertT_configuration(t_configuration);
		return ret_I;
	}

	// 修改
	public int updateT_configuration(ApiT_configuration t_configuration) {
		int ret_I = apiT_configurationMapper
				.updateT_configuration(t_configuration);
		return ret_I;
	}

	// 删除
	public int deleteT_configuration(Integer id) {
		int ret_I = apiT_configurationMapper.deleteT_configuration(id);
		return ret_I;
	}

}
